<div class="form-container">
<div class="validation-errors" id="validationErrors" style="display:none;"></div>
<div class="walk-register-buttons" style="float: left;">
<a href="<?php echo( base_url() ); ?>cmb/member/home/<?php echo( $urlKey ); ?>/" target="_self">Member Home</a>
</div>
<div class="walk-register-buttons" style="float: right;">
	<a href="<?php echo( base_url() ); ?>cmb/member/homepage_logout/"><img src="<?php echo( base_url() ); ?>assets/images/buttons/logout1.gif" border="0" /></a>
</div>
<?php
	Includes::IncludeFile( Includes::$FORM );
	Includes::IncludeFile( Includes::$SPACER );
	$this->load->model('proxies/Person_proxy');
	$codebase = explode(',',$this->config->item('code_base'));
	
	Spacer::Render(0, 50);
	echo('<b>Admin Reports</b>');
	echo('<hr />');

	//Search for members and return limited member information - for all users
	if (in_array("members",$codebase))
	{
		echo('<p>');
		echo('<br/>');
		echo('<br/>');
		echo('<a href="'.base_url().'cmb/member_reports/members_report_process/'.$urlKey.'/" target="_blank">Membership Search</a>');
		echo('<br/>');
		echo('</p>');
	}

	if ($isAdmin and in_array("members",$codebase))
	{
		echo('<p>');
		echo('<br/>');
		echo('<br/>');
		echo('<a href="'.base_url().'cmb/member_reports/registered_households_summary_report/'.$urlKey.'/" target="_blank">Registered Households Summary</a>');
		echo('<br/>');
		echo('</p>');			

		echo('<p>');
		echo('<br/>');
		echo('<br/>');
		echo('<a href="'.base_url().'cmb/member_reports/registered_households_report_process/'.$urlKey.'/" target="_blank">Registered Households Search</a>');
		echo('<br/>');
		echo('</p>');

		echo('<p>');
		echo('<br/>');
		echo('<br/>');
		echo('<a href="'.base_url().'cmb/member_reports/registered_households_list_report/'.$urlKey.'/" target="_blank">Registered Households List</a>');
		echo('<br/>');
		echo('</p>');

		echo('<p>');
		echo('<br/>');
		echo('<br/>');
		echo('<a href="'.base_url().'cmb/member_reports/registered_ticket_list_report/'.$urlKey.'/" target="_blank">Registrated Households Ticket List</a>');
		echo('<br/>');
		echo('</p>');

		echo('<p>');
		echo('<br/>');
		echo('<br/>');
		echo('<a href="'.base_url().'cmb/member_reports/unregistered_households_list_report/'.$urlKey.'/" target="_blank">Unregistered Households List</a>');
		echo('<br/>');
		echo('</p>');

		echo('<p>');
		echo('<br/>');
		echo('<br/>');
		echo('<a href="'.base_url().'cmb/member_reports/unregistered_ticket_list_report/'.$urlKey.'/" target="_blank">Unregistrated Households Ticket List</a>');
		echo('<br/>');
		echo('</p>');
	}

    if (in_array("balavihar",$group) and in_array("members",$codebase))
    {
        echo('<p>');
        echo('<br/>');
        echo('<br/>');
        echo('<a href="'.base_url().'cmb/member_reports/registered_households_report_process/'.$urlKey.'/" target="_blank">Registered Households Search</a>');
        echo('<br/>');
        echo('</p>');

        echo('<p>');
        echo('<br/>');
        echo('<br/>');
        echo('<a href="'.base_url().'cmb/member_reports/registered_households_list_report/'.$urlKey.'/" target="_blank">Registered Households List</a>');
        echo('<br/>');
        echo('</p>');

        echo('<p>');
        echo('<br/>');
        echo('<br/>');
        echo('<a href="'.base_url().'cmb/member_reports/registered_ticket_list_report/'.$urlKey.'/" target="_blank">Registrated Households Ticket List</a>');
        echo('<br/>');
        echo('</p>');

        echo('<p>');
        echo('<br/>');
        echo('<br/>');
        echo('<a href="'.base_url().'cmb/member_reports/unregistered_households_list_report/'.$urlKey.'/" target="_blank">Unregistered Households List</a>');
        echo('<br/>');
        echo('</p>');

        echo('<p>');
        echo('<br/>');
        echo('<br/>');
        echo('<a href="'.base_url().'cmb/member_reports/unregistered_ticket_list_report/'.$urlKey.'/" target="_blank">Unregistrated Households Ticket List</a>');
        echo('<br/>');
        echo('</p>');
    }

	if (($isAdmin or in_array("balavihar",$group)) and in_array("members",$codebase))
	{
		echo('<p>');
		echo('<br/>');
		echo('<br/>');
		echo('<a href="'.base_url().'cmb/member_reports/gen_reports_balavihar_home/'.$urlKey .'/" target="_self">Balavihar Reports</a>');
		echo('<br/>');
		echo('</p>');
	}
/*	
	if (($isAdmin or in_array("mahasamadhi",$group)) and in_array("msc",$codebase))
	{
		echo('<p>');
		echo('<br/>');
		echo('<br/>');
		echo('<a href="'.base_url().'cmb/member_reports/gen_reports_mahasamadhi_home/'.$urlKey .'/" target="_self">Mahasamadhi Reports</a>');
		echo('<br/>');
		echo('</p>');
	}
*/
	if (($isAdmin or in_array("banquet",$group)) and in_array("members",$codebase))
	{
		echo('<p>');
		echo('<br/>');
		echo('<br/>');
		echo('<a href="'.base_url().'cmb/member_reports/banquet_report_process/'.$urlKey .'/" target="_self">Annual Banquet Search</a>');
		echo('<br/>');
		echo('</p>');
	}
/*
	if (($isAdmin or in_array("spiritual",$group)) and in_array("members",$codebase))
	{
		echo('<p>');
		echo('<br/>');
		echo('<br/>');
		echo('<a href="'.base_url().'cmb/member_reports/swamivisits_report_process/'.$urlKey .'/" target="_self">Swami Visits Search</a>');
		echo('<br/>');
		echo('</p>');
	}
*/
?>
    <div class="clear">
    </div>
</div>
